package com.wsm.util.httpclient.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.PriorityOrdered;

/**
 * @author ：wangshimin
 * @date ：Created in 2021-03-02 上午 09:15
 * @description：
 * @version:
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "httpclient", ignoreInvalidFields = true)
public class HttpClientConfig implements PriorityOrdered {
    /**
     * 日志数据
     */
    private LogConfig log = new LogConfig();

    private Integer retryCount = 3;

    @Override
    public int getOrder() {
        return HIGHEST_PRECEDENCE;
    }
}
